package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 30318
 * Date: 2023-05-20
 * Time: 21:26
 */
interface USB{
    void openDevice();
    void closeDevice();
}

abstract class TestDemo implements USB{

}

class Mouse implements USB{
    @Override
    public void openDevice(){
        System.out.println("打开鼠标");
    }

    @Override
    public void closeDevice(){
        System.out.println("关闭鼠标");
    }

    public void click(){
        System.out.println("鼠标点击");
    }
}

public class Test3 {
}
